Automatic Quality Control Of Building Elements